package io.potato.api.config;

/**
 * WebService配置
 * author: timl
 * time: 2018/11/27 10:58
 */
//@Configuration
public class CxfConfig {

    /*//@Autowired
    SmsWebService smsWebService;

    //@Bean
    public ServletRegistrationBean<CXFServlet> dispatcherServlet(){
        return new ServletRegistrationBean<CXFServlet>(new CXFServlet(), "/service/*");//发布服务名称    
    }

    //@Bean(name = Bus.DEFAULT_BUS_ID)
    public SpringBus springBus() {
        return  new SpringBus();
    }

    //@Bean
    public Endpoint endpoint() {
        EndpointImpl endpoint = new EndpointImpl(springBus(), smsWebService);//绑定要发布的服务
        endpoint.publish("/Sms"); //显示要发布的名称
        return endpoint;
    }*/
}
